.filterOptionWrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.searchInputWrapper {
  position: relative;
  height: 39px;

  .searchInput {
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--text-body);
    outline: none;
    background-color: var(--bg-body);
    border: 1px solid #ccc;
    border-radius: 5px;

    &::placeholder {
      color: #888;
    }
  }

  .searchInput:focus,
  .searchInput:hover {
    border: 2px solid var(--primary-color);
  }
}

.filterByTechWrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;

  & > a {
    display: inline-block;
    width: 35px;
    height: 35px;
    overflow: hidden;
    border-radius: 4px;
    transition: 0.4s ease-in-out;

    &:hover {
      box-shadow: 0 0 20px rgb(0 0 0 / 34%);
    }
  }

  & > a > img {
    padding: 2px;
    border-radius: 4px;

    &.activeTech {
      border: 2px solid var(--text-link);
    }
  }
}

.emptyMessage {
  margin: 5rem auto;
  font-size: 18px;
  font-weight: 500;

  > div {
    margin-top: 0.5rem;
    font-size: 14px;
    font-weight: 400;
  }
}

.challengeGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  grid-gap: 2.5rem;
  margin: 2rem 0;
}

.challengeCard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-body);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  box-shadow: 0 0 1rem 0 var(--card-shadow);
  transition: all 0.2s ease-in-out;

  &:hover {
    box-shadow: 0 6px 8px 0 var(--card-shadow-hover);
    transform: scale(1.05);
  }

  // for only new
  &.new {
    background:
      linear-gradient(var(--card-body), var(--card-body)) padding-box,
      rgb(88 7 250 / 25%) border-box;
    border: 0.2rem solid transparent;
    border-image-slice: 1;
    box-shadow: 0 0 1rem 0 #e2c7ff;

    &:hover {
      box-shadow: 0 6px 8px 0 #d7b2ff;
    }
  }

  .avatarContainer > *:not(:first-child) {
    margin-top: 0.5rem;
  }

  h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-body);
  }

  &.disabled h3 {
    color: grey;
  }

  &.disabled {
    cursor: not-allowed;
    box-shadow: 0 3px 4px 0 rgb(0 0 0 / 10%);
  }

  &.disabled:hover {
    transform: scale(1);
  }

  .developer {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-body);

    & > img {
      width: 25px;
      height: 25px;
      margin-right: 0.5rem;
      border-radius: 50%;
    }
  }

  .name {
    color: var(--text-body);
  }

  .difficultyBadge {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.1rem 0.6rem;
    font-weight: bold;
    color: var(--difficulty-color);
    border: 2px solid;
    border-radius: 5rem;
  }

  .ellips {
    width: 0.4rem;
    height: 0.4rem;
    background-color: var(--difficulty-color);
    border: 1px solid;
    border-radius: 50%;
  }

  &.Easy {
    --difficulty-color: #10b981;
  }

  &.Medium {
    --difficulty-color: darkorange;
  }

  &.Hard {
    --difficulty-color: #ff375f;
  }
}

.checkboxContainer {
  display: flex;
  column-gap: 0.3rem;
  align-items: center;
  width: fit-content;
  cursor: pointer;

  .checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }

  label {
    cursor: pointer;
  }
}

.newTag {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  z-index: 1;
  padding: 0.25rem 1rem;
  font-size: small;
  font-weight: bold;
  color: #fff;
  background: rgb(96 44 253)
    linear-gradient(90deg, rgb(96 44 253 / 100%) 9%, rgb(123 0 255 / 100%) 55%);
  border-radius: 10rem;
  transform: translate(-50%);
}

.interviewBadge {
  padding: 0.2rem 0.75rem;
  color: #fff;
  background: linear-gradient(60deg, rgb(75 114 255) 0%, rgb(5 38 255) 83%);
  border-radius: 5rem;
}
